package com.cn.web.org.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.cn.common.IDGenerate;
import com.cn.empty.EmptyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * description: OrgVO <br>
 * date: 21.12.16 15:00 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "组织机构列表VO")
public class OrgVO extends IDGenerate {

    @ExcelProperty(value = "部门名称")
    @ApiModelProperty(value = "名称")
    private String orgName;

    @ExcelIgnore
    @ApiModelProperty(value = "编号(系统自动填充，前端不要管)")
    private String orgNo;

    @ExcelIgnore
    @EmptyCheck(message = "父级编号不能为空")
    @ApiModelProperty(value = "父级编号")
    private String parentNo;

    @ExcelIgnore
    @ApiModelProperty(value = "0-机构(组织或单位) 1-部门(科室或内置机构)")
    private String orgType;

    @ExcelIgnore
    @ApiModelProperty(value = "统一社会信用代码")
    private String orgCard;

    @ExcelProperty(value = "描述")
    @ApiModelProperty(value = "描述")
    private String orgDesc;

    @ExcelIgnore
    @ApiModelProperty(value = "详细地址")
    private String address;

    @ExcelIgnore
    @ApiModelProperty(value = "子节点")
    private List<OrgVO> child;

}
